package cn.fayang.ymcc.constant;

public enum YmccExceptionConstant {
    NUll_EXCEPTION("参数不能为空","4000"),
    COMMON_PHONE_NO_EMPTY("4101", "手机号不能为空"),
    COMMON_SERIOUS("4102", "大兄弟，手速不要太快！！"),
    COMMON_PHONE_ILLEGAL("4103", "手机号不合法"),
    COMMON_PHONE_BLICKLIST("4104", "已经被拉入黑名单"),



    USER_SMS_EMPTY("4201", "短信验证码失效！"),
    USER_SMSCODE_NOT_EQUALS("4202", "验证码输入错误！"),
    USER_EXISTS("4203", "用户已存在！"),
    ;

    private String message;
    private String code;

    YmccExceptionConstant(String message,String code){
        this.message = message;
        this.code = code;
    }

    public String getMessage(){
        return this.message;
    }
    public String getCode(){
        return this.code;
    }
}
